<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>
		<record id="view_account_form_bf" model="ir.ui.view">
            <field name="name">account.account.form.bf</field>
            <field name="model">account.account</field>
            <field name="inherit_id" ref="account.view_account_form"/>
            <field name="arch" type="xml">
            	<field name="code" class="oe_inline" placeholder="Account code" style="width: 6em" position="replace">
            		<field name="code" class="oe_inline" placeholder="Account code" style="width: 6em" required="0" readonly="1" string="Full Code"/> -
            	</field>
            	<field name="parent_id" position="before">
            		<field name="account_code" required="1"/>
            		<field name="account_dept_id" widget="selection"/>
            		<field name="account_cost_center_id" widget="selection"/>
            	</field>
            	<field name="balance" position="after">
            		<field name="bank_account"/>
            	</field>
            </field>
        </record>
        
        <record id="view_account_dept_form" model="ir.ui.view">
            <field name="name">account.dept.form</field>
            <field name="model">account.dept</field>
            <field name="arch" type="xml">
                <form string="Department Code">
				<sheet>
                    <div class="oe_title">
                        <h1>
                            <label string="Department Code"/>
                        </h1>
                    </div>
                     <group>
                        <group>
                            <field name="code" required="1"/>
							<field name="name"/>
                        </group>
                     </group>
				</sheet>
                </form>
            </field>
        </record>

       <record id="account_dept_search" model="ir.ui.view">
            <field name="name">account.dept.search</field>
            <field name="model">account.dept</field>
            <field name="arch" type="xml">
                <search string="Search Department Code">
                    <field name="code"/>
                    <field name="name"/>
                </search>
            </field>
        </record>
 
         <record id="account_dept_tree" model="ir.ui.view">
            <field name="name">account.dept.tree</field>
            <field name="model">account.dept</field>
            <field name="arch" type="xml">
                <tree string="Department Code">
                    <field name="code"/>
					<field name="name"/>
                </tree>
            </field>
        </record>


		<record id="account_dept_action" model="ir.actions.act_window">
            <field name="name">Department Code</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.dept</field>
            <field name="view_mode">tree,form</field>
            <field name="search_view_id" ref="account_dept_search"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a new department code entries.
              </p>
            </field>
        </record>
		
		<menuitem action="account_dept_action" 
				id="menu_account_dept_form" 
				parent="account.account_account_menu"
				sequence="1"/>
				
		<record id="view_account_cost_center_form" model="ir.ui.view">
            <field name="name">account.cost.center.form</field>
            <field name="model">account.cost.center</field>
            <field name="arch" type="xml">
                <form string="Cost Center Code">
				<sheet>
                    <div class="oe_title">
                        <h1>
                            <label string="Cost Center Code"/>
                        </h1>
                    </div>
                     <group>
                        <group>
                            <field name="code" required="1"/>
							<field name="name"/>
                        </group>
                     </group>
				</sheet>
                </form>
            </field>
        </record>

       <record id="account_cost_center_search" model="ir.ui.view">
            <field name="name">account.cost.center.search</field>
            <field name="model">account.cost.center</field>
            <field name="arch" type="xml">
                <search string="Search Cost Center Code">
                    <field name="code"/>
                    <field name="name"/>
                </search>
            </field>
        </record>
 
         <record id="account_cost_center_tree" model="ir.ui.view">
            <field name="name">account.cost.center.tree</field>
            <field name="model">account.cost.center</field>
            <field name="arch" type="xml">
                <tree string="Cost Center Code">
                    <field name="code"/>
					<field name="name"/>
                </tree>
            </field>
        </record>

		<record id="account_cost_center_action" model="ir.actions.act_window">
            <field name="name">Cost Center Code</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.cost.center</field>
            <field name="view_mode">tree,form</field>
            <field name="search_view_id" ref="account_cost_center_search"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a new cost center code entries.
              </p>
            </field>
        </record>
		
		<menuitem action="account_cost_center_action" 
				id="menu_account_cost_center_form"
				parent="account.account_account_menu"
				sequence="2"/>
        
	</data>
</openerp>
